#include "classinfo.h"

ClassInfo::ClassInfo()
{
    m_id.clear();
    m_name.clear();
    m_room.clear();
    m_count.clear();
}

ClassInfo::ClassInfo(const string &id, const string &name,
                     const string &room, const string &count)
{
    m_id = id;
    m_name = name;
    m_room = room;
    m_count = count;
}

void ClassInfo::display(void) const
{
    cout << "ID: " << m_id << endl;
    cout << "Name: " << m_name << endl;
    cout << "Room: " << m_room << endl;
    cout << "Count: " << m_count << endl;
}

void ClassInfo::setID(const string &id)
{
    m_id = id;
}

void ClassInfo::setName(const string &name)
{
    m_name = name;
}

void ClassInfo::setRoom(const string &room)
{
    m_room = room;
}

void ClassInfo::setCount(const string &count)
{
    m_count = count;
}

const string &ClassInfo::getID() const
{
    return m_id;
}
const string &ClassInfo::getName() const
{
    return m_name;
}
const string &ClassInfo::getRoom() const
{
    return m_room;
}
const string &ClassInfo::getCount() const
{
    return m_count;
}

